package cn.kgc.flightsmanagement.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Flight {
    private Integer id;

    private String flightno;

    private Integer departurecity;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date departuretime;

    private Integer arrivalcity;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date arrivaltime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFlightno() {
        return flightno;
    }

    public void setFlightno(String flightno) {
        this.flightno = flightno == null ? null : flightno.trim();
    }

    public Integer getDeparturecity() {
        return departurecity;
    }

    public void setDeparturecity(Integer departurecity) {
        this.departurecity = departurecity;
    }

    public Date getDeparturetime() {
        return departuretime;
    }

    public void setDeparturetime(Date departuretime) {
        this.departuretime = departuretime;
    }

    public Integer getArrivalcity() {
        return arrivalcity;
    }

    public void setArrivalcity(Integer arrivalcity) {
        this.arrivalcity = arrivalcity;
    }

    public Date getArrivaltime() {
        return arrivaltime;
    }

    public void setArrivaltime(Date arrivaltime) {
        this.arrivaltime = arrivaltime;
    }
}